<div class="xm-message-container">
  <xm-message-item *ngFor="let item of messages; index as i" [index]="i" [message]="item"></xm-message-item>
</div>
